package com.pepository.neo4j;

import com.model.neo4j.Role;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface RoleRepository extends Neo4jRepository<Role, Long> {
    @Query("MATCH p=()-[r:ACTED_IN]->() RETURN p")
    List<Role> findAll();

}
